package com.pattern.structure.facade;

/**
 * @author yangguanzan
 * @date 4/9/22
 * @description
 */
public class PostOffice {

    /**
     * 送信目的地
     */
    private String address;

    public void checkPostFee(ILetterWriter letterWriter) {
        System.out.println("邮局根据地址确认邮费");
        this.address = letterWriter.getAddress();
    }

    /**
     * 送信
     */
    public void sendLetter() {
        System.out.println("送信到目的地："+address);
    }
}
